home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / mx / collections / ItemResponder.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  875 b   |  38 lines

  1. package mx.collections
  2. {
  3.    import mx.core.mx_internal;
  4.    import mx.rpc.IResponder;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class ItemResponder implements IResponder
  9.    {
  10.       mx_internal static const VERSION:String = "3.0.0.0";
  11.       
  12.       private var _faultHandler:Function;
  13.       
  14.       private var _token:Object;
  15.       
  16.       private var _resultHandler:Function;
  17.       
  18.       public function ItemResponder(param1:Function, param2:Function, param3:Object = null)
  19.       {
  20.          super();
  21.          _resultHandler = param1;
  22.          _faultHandler = param2;
  23.          _token = param3;
  24.       }
  25.       
  26.       public function result(param1:Object) : void
  27.       {
  28.          _resultHandler(param1,_token);
  29.       }
  30.       
  31.       public function fault(param1:Object) : void
  32.       {
  33.          _faultHandler(param1,_token);
  34.       }
  35.    }
  36. }
  37.  
  38.